<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "user_in_store".
 *
 * @property integer $id
 * @property string $store_code
 * @property string $phone
 * @property integer $status
 * @property string $upd_time
 */
class UserInStore extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'user_in_store';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['status'], 'integer'],
            [['upd_time'], 'safe'],
            [['store_code'], 'string', 'max' => 10],
            [['phone'], 'string', 'max' => 11],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'store_code' => '门店编码',
            'phone' => '手机号',
            'status' => '状态  1-到店 ，2-离店',
            'upd_time' => '操作时间',
        ];
    }
}
